<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Signup_record_model extends MY_Model{
	
	public $tb_name = 'signup_record';
	
	public function __construct(){
		parent::__construct($this->tb_name);
	}
	
	public function dict_options($key = null, $index = null){
		$return = array(
			'sex' => [
				'1' => '男',
				'0' => '女'
			],
			'bool' => [
				'1' => '是',
				'0' => '否'
			],
			'study_way' => [
				'0' => '走读',
				'1' => '住读'
			],
			'follow_way' => [
				'微信',
				'学校推荐',
				'招生活动',
				'朋友推荐',
				'电视广播',
				'网络搜索',
				'报刊杂志',
				'其他'
			],
			'status' => [
				'0' => '审核中',
				'1' => '审核通过'
			]
		);
		if($key !== null){
			$return = $return[$key];
		}
		if($index !== null){
			$return = $return[$index];
		}
		return $return;
	}
	
}